// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '每日计划',
        name: 'DailyPlanModel',
        url: "/DailyPlanModel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"PlanCode":"","OrderCode":"","TargetDate":"","DailyProductionTarget":"","ProcessRoute":"","Team":"","MorningshiftStarttime":"","MorningshiftEndtime":"","FirstmorningShiftStarttime":"","FirstmorningShiftEndtime":"","MiddleShiftStartTime":"","MiddleShiftEndTime":"","FirstmiddleShiftStartTim":"","FirstmiddleShiftEndTime":"","EveningShiftStartTime":"","EveningShiftEndTime":"","FirsteveningShiftStartTime":"","FirsteveningShiftEndTime":"","CalibratedTimePerPiece":"","ActualTimePerPiece":"","ActualOutput":"","NumberofDefectiveProducts":"","CompletionRate":"","FirstpassYieldRate":""};
    const editFormOptions = [[{"title":"计划编号","required":true,"field":"PlanCode","type":"text"}],
                              [{"title":"订单编号","required":true,"field":"OrderCode","type":"text"}],
                              [{"title":"目标日期","required":true,"field":"TargetDate","type":"datetime"}],
                              [{"title":"日计划产量","required":true,"field":"DailyProductionTarget","type":"text"}],
                              [{"title":"工艺路线","required":true,"field":"ProcessRoute","type":"text"}],
                              [{"dataKey":"班组","data":[],"title":"班组","required":true,"field":"Team","type":"select"}],
                              [{"title":"早班开始时间","required":true,"field":"MorningshiftStarttime","type":"datetime"}],
                              [{"title":"早班结束时间","required":true,"field":"MorningshiftEndtime","type":"datetime"}],
                              [{"title":"早班1开始时间","required":true,"field":"FirstmorningShiftStarttime","type":"datetime"}],
                              [{"title":"早班1结束时间","required":true,"field":"FirstmorningShiftEndtime","type":"datetime"}],
                              [{"title":"中班开始时间","required":true,"field":"MiddleShiftStartTime","type":"datetime"}],
                              [{"title":"中班结束时间","required":true,"field":"MiddleShiftEndTime","type":"datetime"}],
                              [{"title":"中班1开始时间","required":true,"field":"FirstmiddleShiftStartTim","type":"datetime"}],
                              [{"title":"中班1结束时间","required":true,"field":"FirstmiddleShiftEndTime","type":"datetime"}],
                              [{"title":"晚班开始时间","required":true,"field":"EveningShiftStartTime","type":"datetime"}],
                              [{"title":"晚班结束时间","required":true,"field":"EveningShiftEndTime","type":"datetime"}],
                              [{"title":"晚班1开始时间","required":true,"field":"FirsteveningShiftStartTime","type":"datetime"}],
                              [{"title":"晚班1结束时间","required":true,"field":"FirsteveningShiftEndTime","type":"datetime"}],
                              [{"title":"标定每件耗时（s）","required":true,"field":"CalibratedTimePerPiece","type":"number"}],
                              [{"title":"实际每件耗时（s）","required":true,"field":"ActualTimePerPiece","type":"number"}],
                              [{"title":"实际产量","required":true,"field":"ActualOutput","type":"number"}],
                              [{"title":"次品数量","required":true,"field":"NumberofDefectiveProducts","type":"number"}],
                              [{"title":"完成率","required":true,"field":"CompletionRate","type":"number"}],
                              [{"title":"一次性通过率","required":true,"field":"FirstpassYieldRate","type":"number"}]];
    const searchFormFields = {"OrderCode":""};
    const searchFormOptions = [[{"title":"订单编号","field":"OrderCode","type":"like"}]];
    const columns = [{field:'Id',title:'主键id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'PlanCode',title:'计划编号',type:'string',width:110,require:true,align:'left'},
                       {field:'OrderCode',title:'订单编号',type:'string',width:110,require:true,align:'left'},
                       {field:'TargetDate',title:'目标日期',type:'datetime',width:150,require:true,align:'left'},
                       {field:'DailyProductionTarget',title:'日计划产量',type:'int',width:110,require:true,align:'left'},
                       {field:'ProcessRoute',title:'工艺路线',type:'string',width:110,require:true,align:'left'},
                       {field:'Team',title:'班组',type:'string',bind:{ key:'班组',data:[]},width:110,require:true,align:'left'},
                       {field:'MorningshiftStarttime',title:'早班开始时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'MorningshiftEndtime',title:'早班结束时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'FirstmorningShiftStarttime',title:'早班1开始时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'FirstmorningShiftEndtime',title:'早班1结束时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'MiddleShiftStartTime',title:'中班开始时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'MiddleShiftEndTime',title:'中班结束时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'FirstmiddleShiftStartTim',title:'中班1开始时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'FirstmiddleShiftEndTime',title:'中班1结束时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'EveningShiftStartTime',title:'晚班开始时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'EveningShiftEndTime',title:'晚班结束时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'FirsteveningShiftStartTime',title:'晚班1开始时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'FirsteveningShiftEndTime',title:'晚班1结束时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'ActualTimePerPiece',title:'实际每件耗时（s）',type:'int',width:110,require:true,align:'left'},
                       {field:'ActualOutput',title:'实际产量',type:'int',width:110,require:true,align:'left'},
                       {field:'NumberofDefectiveProducts',title:'次品数量',type:'int',width:110,require:true,align:'left'},
                       {field:'CompletionRate',title:'完成率',type:'decimal',width:110,require:true,align:'left'},
                       {field:'FirstpassYieldRate',title:'一次性通过率',type:'decimal',width:110,require:true,align:'left'},
                       {field:'CalibratedTimePerPiece',title:'标定每件耗时（s）',type:'int',width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}